drawcontext: Add property annotations
authorMatthias Clasen <mclasen@redhat.com>
Thu, 25 Feb 2021 01:03:48 +0000 (20:03 -0500)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 11 Mar 2021 16:37:32 +0000 (16:37 +0000)
Connect properties, getters, and setters with annotations.

gdk/gdkdrawcontext.c

index 451b7499abb4d859917d956cf1e29ff3e5500adb..4135ed4e4e5d890a766bd64b87832e46afe0a6e4 100644 (file)
@@ -139,7 +139,7 @@ gdk_draw_context_class_init (GdkDrawContextClass *klass)
   klass->surface_resized = gdk_draw_context_default_surface_resized;
 
   /**
-   * GdkDrawContext:display:
+   * GdkDrawContext:display: (attributes org.gtk.Property.get=gdk_draw_context_get_display)
    *
    * The `GdkDisplay` used to create the `GdkDrawContext`.
    */
@@ -152,7 +152,7 @@ gdk_draw_context_class_init (GdkDrawContextClass *klass)
                          G_PARAM_STATIC_STRINGS);
 
   /**
-   * GdkDrawContext:surface:
+   * GdkDrawContext:surface: (attributes org.gtk.Property.get=gdk_draw_context_get_surface)
    *
    * The `GdkSurface` the context is bound to.
    */
@@ -214,7 +214,7 @@ gdk_draw_context_surface_resized (GdkDrawContext *context)
 }
 
 /**
- * gdk_draw_context_get_display:
+ * gdk_draw_context_get_display: (attributes org.gtk.Method.get_property=display)
  * @context: a `GdkDrawContext`
  *
  * Retrieves the `GdkDisplay` the @context is created for
@@ -232,7 +232,7 @@ gdk_draw_context_get_display (GdkDrawContext *context)
 }
 
 /**
- * gdk_draw_context_get_surface:
+ * gdk_draw_context_get_surface: (attributes org.gtk.Method.get_property=surface)
  * @context: a `GdkDrawContext`
  *
  * Retrieves the surface that @context is bound to.